<%@ page import="com.workmanager.bean.ClassBean" %>
<%@ page import="java.util.List" %>
<%@ page import="com.workmanager.util.springUtil" %>
<%@ page import="com.workmanager.service.TeacherClassService" %>
<%--
  Created by IntelliJ IDEA.
  User: liao
  Date: 2016/8/24
  Time: 9:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/top.jsp"%>
<script src="<%=ctxpath%>/static/teacher/js/publishJob.js"></script>
<link href="<%=ctxpath%>/static/teacher/css/publishJob.css" rel="stylesheet">
<link href="<%=ctxpath%>/static/v3/bk.css?v=1.0.1" rel="stylesheet"/>
<link href="<%=ctxpath%>/static/v3/font-awesome.css" rel="stylesheet"/>
<%
    List<ClassBean> list = (List<ClassBean>) request.getAttribute("list");
%>
<input type="hidden" id="hidden" name="hidden" value="<%=tea.getTeacher_id()%>"/>
<div class="panel panel-default table7_demo">
    <div class="panel-heading">
        <span style="font-size: 16px;font-weight:bolder;">发布作业或通知</span>
    </div>
            <div class="form-group" >
                <span class="span">请选择:</span>
                <select id="select1" onchange="changeTip(this.id)">
                    <option value="0">请选择...</option>
                    <option value="1" selected>发布作业</option>
                    <option value="2">发布通知</option>
                </select>
            </div>
    <div class="code1" aos="zoom-in-down">
        <div class="div" id="publishJob" style="display:none;">
            <h3>[发布作业]</h3>
            <div class="divv form-group">
                <span class="span">作业内容:</span>
                <input type="text" name="title" id="title" placeholder="请输入..."/>
            </div>
            <div class="divv">
                <span class="span">作业详细说明:</span>
                <textarea rows="4" id="jobDetails" name="jobDetails">
                </textarea>
            </div>
            <div class="divv">
                <span class="span">对象班级:</span>
                <select id="class1" >
                    <%for(ClassBean cb : list){%>
                    <option value=<%=cb.getClass_id()%>><%=cb.getClass_name()%></option>
                    <%}%>
                </select>
            </div>
            <div class="divv king-block-content plugin16_demo" id="plugin16_demo2">
                <span class="span">开始日期:</span>
                <input type="text" class="form-control" id="plugin16_demo1_3" placeholder="选择日期时间...">
                <span class="span">结束日期:</span>
                <input type="text" class="form-control" id="plugin16_demo1_4" placeholder="选择日期时间...">
            </div>
            <div class="divv">
                <button class="king-btn-demo1 king-btn king-round king-success" title="保存">发布</button>
            </div>
        </div>
    </div>
    <div class="div" id="publishNotice" style="display:none;">
        <h3>[发布通知]</h3>
        <div class="divv form-group">
            <span class="span">通知内容:</span>
                <textarea rows="4" id="noticeDetails" name="noticeDetails">
                </textarea>
        </div>
        <div class="divv">
            <span class="span">对象班级:</span>
            <select id="class2" >
                <%for(ClassBean cb : list){%>
                <option value=<%=cb.getClass_id()%>><%=cb.getClass_name()%></option>
                <%}%>
            </select>
        </div>
        <div class="divv">
            <span class="span">是否置顶:</span>
            <label><input tabindex="3" value="yes" type="radio" id="radioYes" name="radio" checked="checked">是</label>
            <label><input tabindex="3" value="no" type="radio" id="radioNo" name="radio">否</label>
        </div>
        <div class="divv">
            <button class="king-btn-demo2 king-btn king-round king-success" title="保存">发布</button>
        </div>
    </div>
    </div>
<script type="text/javascript">
    //时间日期选择
    $("#plugin16_demo1_3").kendoDateTimePicker({
        value:new Date()
    });
    //时间日期选择
    $("#plugin16_demo1_4").kendoDateTimePicker({
        value:new Date()
    });
</script>
<%@include file="../inc/bottom.jsp"%>
